//related to chat_cell.ui
var root = ui("$");
// $是这个ui文件根节点组件的通配符，如果指定组件的id，也可以用id来获取对象
var qqmath = require("util/qqmath");
var price = ui("price_label");
root.setMapping({
	"photo_imageview.source" : "img",
	"name_label.text" : "name",
	"spec_label.text" : "spec",
	"price_label.text" : "price",
	"count_label.text" : "quantity",
	"supplier_label.text" : "supplierTypeStr"
});
root.on("dataRefreshed", function(){
	price.text = qqmath.getDight(price.text,2)+'';
});